package com.qcby.front.controller;


import com.qcby.front.service.SgCategoryService;
import com.qcby.framwork.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 分类表 前端控制器
 * </p>
 *
 * @author admin
 * @since 2024-09-04
 */
@RestController
@RequestMapping("/category")
public class SgCategoryController {
    @Autowired
    private SgCategoryService sgCategoryService;
    @GetMapping("/getCategoryList")
    public ResponseResult getCategoryList(){
        return sgCategoryService.getCategoryList();
    }
}

